import request from '@/utils/request'

export function adminList(data) {
  return request({
    url: '/admin/admin',
    method: 'get'
  })
}

export function getAdminInfo(params) {
  return request({
    url: '/admin/admininfo',
    method: 'get',
    params
  })
}

export function addAdmin(data) {
  return request({
    url: '/admin/admin',
    method: 'post',
    data
  })
}

export function delAdmin(data) {
  return request({
    url: '/admin/admin',
    method: 'delete',
    data
  })
}

export function updateAdmin(data) {
  return request({
    url: '/admin/admin',
    method: 'put',
    data
  })
}
